import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { CoreModule } from '@core/core.module';
import { LayoutModule } from '@layout/layout.module';
import { ShareModule } from '@share/share.module';

import { AppComponent } from './app.component';
import { ConfigModule } from './config.module';
import { PageModule } from './page/page.module';

const MODULES = [ShareModule, CoreModule, PageModule, LayoutModule];

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, FormsModule, HttpClientModule, BrowserAnimationsModule, ConfigModule.forRoot(), ...MODULES],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}
